package com.example.mybatisplus.mapper;

import com.example.mybatisplus.model.domain.FilmCollection;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author gxt
 * @since 2024-11-17
 */
@Repository
public interface FilmCollectionMapper extends BaseMapper<FilmCollection> {
    void insertFilmCollection(FilmCollection filmCollection);
    int deleteFilmCollection(Integer userId, Integer movieId);

    List<Integer> selectByUserId(Integer userId);

    boolean existsUserMovie(Integer userId, Integer movieId);
}
